//
//  CLAnimal.m
//  Charles
//
//  Created by Leo on 2017/6/13.
//  Copyright © 2017年 charles. All rights reserved.
//

#import "Animal.h"

@implementation Animal

- (NSString *)behavior {
    return @"";
}

- (void)setDesc:(NSString *)desc {
     _desc = desc;
}

@end

@implementation Pig

- (instancetype)init {
    if (self = [super init]) {
        self.desc = @"猪：";
    }
    return self;
}

- (NSString *)behavior {
    return @"地上走";
}
@end

@implementation Bird

- (instancetype)init {
    if (self = [super init]) {
        self.desc = @"鸟：";
    }
    return self;
}

- (NSString *)behavior {
    return @"天上飞";
}

@end
